Skip to content

fix(packaging): give hdiutil an explicit .dmg size - #15

Merged
DeepDiver1975 merged 1 commit into
mainfrom
fix/dmg-explicit-size
Oct 27, 2026
Merged

DeepDiver1975 merged 1 commit into
mainfrom
fix/dmg-explicit-size

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Collaborator

Summary

The v0.1.0 tag build failed on the osx-x64 .dmg, twice (the failed job was re-run once):

could not access /Volumes/Freizeichen/Freizeichen.app/Contents/MacOS/Freizeichen - No space left on device
hdiutil: create failed - No space left on device

The arm64 build of the same script passed. hdiutil create -srcfolder sizes the image on its own, and for the x64 app it came up short. Because the macOS job failed, the release job was skipped and nothing was published.

Changes

  • packaging/macos/build-dmg.sh measures the staged Freizeichen.app with du and passes -size with 50 % plus 20 MB of headroom. UDZO compression shrinks the finished .dmg back down to its content.

Verification

  • A manual run of release.yml on this branch (run 40495931756) passed every job. The artifacts were Windows MSI 58 MB, macOS x64 49 MB and macOS arm64 46 MB.
  • Failed tag run, for comparison: run 40495404547.

After merge, v0.1.0 has to be re-tagged on the new main, because the workflow builds from the tagged commit.

🤖 Generated with Claude Code

The v0.1.0 tag build failed twice on the osx-x64 .dmg with "No space
left on device" while hdiutil copied the executable into the image it
had sized from -srcfolder itself. The arm64 build of the same script
passed. The script now measures the staged app and passes -size with 50 %
plus 20 MB of headroom. UDZO compresses the finished .dmg back down to
its content.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Thomas Müller <[email protected]>
@DeepDiver1975
DeepDiver1975 merged commit ab2e761 into main Oct 27, 2026
13 checks passed
@DeepDiver1975
DeepDiver1975 deleted the fix/dmg-explicit-size branch October 27, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant